import VueRoute from 'vue-router'
import Vue from 'vue'

Vue.use(VueRoute);

//注册界面
import zhuCe from "./components/login/zhuCe.vue"
import LoginName from "./components/login/LoginName.vue"
import Mainyemian from "./components/login/Mainyemian.vue"


//个人中心界面
import MainApp from "./components/UserCenter/MainApp.vue"
import MainAside from "./components/UserCenter/MainAside.vue"
import ReturnName from "./components/UserCenter/ReturnName.vue"

var route = new VueRoute({
    routes: [
    {
        path:"/Mainyemian",//显示中间页面，登录注册
        component:Mainyemian,
        children:[
        
            {
                path:"/zhuCe",
                component: zhuCe
            },
            {
                path:"/LoginName",
                component: LoginName
            },
            {
                path:"/MainApp",
                component: MainApp,//路由的嵌套
                children:[
                    {
                        path:"/MainAside",
                        component: MainAside
                    },
                    {
                        path:"/ReturnName",
                        component: ReturnName
                    },
                ]
                    
        
            },
          
        ],
       
    }
]
})

export default route
